﻿<Window
    x:Class="RS.ApplicationWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:rsCoreWPF="clr-namespace:RS.Helper.WPF"
    xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
    xmlns:ui="clr-namespace:RS.UI"
    xmlns:rs="clr-namespace:RS"
    Title="Render Studio"
    Height="600"
    Width="800"
	WindowStyle = "None"
	ResizeMode="NoResize"
    WindowStartupLocation="CenterScreen"
    WindowState="Maximized">
    <Window.CommandBindings>
        <CommandBinding
            Command="rs:RSUICommands.OpenScene" 
            Executed="OpenScene_Executed" />
        <CommandBinding
            Command="rs:RSUICommands.Exit" 
            Executed="Exit_Executed" />
    </Window.CommandBindings>
    <Window.InputBindings>
        <KeyBinding Command="rs:RSUICommands.OpenScene" Key="O" Modifiers="Ctrl"/>
        <KeyBinding Command="rs:RSUICommands.Exit" Key="X" Modifiers="Ctrl"/>
    </Window.InputBindings>

    <rsCoreWPF:WindowDecorator x:Name="windowDecorator" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid x:Name="grdRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <Menu>
                <MenuItem Header="File">
                    <MenuItem Header="Open a scene..." Command="rs:RSUICommands.OpenScene"/>
                    <Separator/>
                    <MenuItem Header="Exit" Command="rs:RSUICommands.Exit"/>
                </MenuItem>
            </Menu>

            <!-- Status bar on bottom -->
            <!--StatusBar DockPanel.Dock="Bottom">
                <StatusBarItem DockPanel.Dock="Right" HorizontalAlignment="Right">
                    <StackPanel Margin="2" Orientation="Horizontal">
                        <TextBlock Margin="2,0"  Text="Info:" FontWeight="Bold" />
                </StackPanel>
                </StatusBarItem>
            </StatusBar-->

            <!-- Viewport windows -->
            <Grid x:Name="gridContent" Grid.Row="1">
                <ad:DockingManager x:Name="_dockingManager">
                    <ad:ResizingPanel Orientation="Vertical">
                        <ad:ResizingPanel Orientation="Horizontal">
                            <ad:DockablePane ad:ResizingPanel.ResizeWidth="80">
                                <ad:DockableContent x:Name="_toolbox" Title="Tools" DockableStyle="Dockable" Width="60" Height="25" FloatingWindowSize="60,250" FloatingResizeMode="NoResize">
                                    <StackPanel x:Name="tbMain" Orientation="Vertical">
                                        <!--RadioButton Style="{StaticResource Button.Commented}" ToolTip="Selection">
                                            <Image Width="32" Height="32" Source="images/toolbox/select.png" ToolTip="Selection"/>
                                        </RadioButton>
                                        <RadioButton Style="{StaticResource Button.Commented}" ToolTip="Translate">
                                            <Image Width="32" Height="32" Source="images/toolbox/translation.png" ToolTip="Translate"/>
                                        </RadioButton>
                                        <RadioButton Style="{StaticResource Button.Commented}" ToolTip="Scale">
                                            <Image Width="32" Height="32" Source="images/toolbox/scale.png" ToolTip="Scale"/>
                                        </RadioButton>
                                        <RadioButton Style="{StaticResource Button.Commented}" ToolTip="Rotation">
                                            <Image Width="32" Height="32" Source="images/toolbox/rotation.png" ToolTip="Rotate"/>
                                        </RadioButton-->
                                    </StackPanel>
                                </ad:DockableContent>
                            </ad:DockablePane>
                            <ad:DocumentPane x:Name="_documentsHost">
                                <ad:DocumentContent Title="Views">
                                </ad:DocumentContent>
                            </ad:DocumentPane>
                            <ad:DockablePane ad:ResizingPanel.ResizeWidth="200">
                                <ad:DockableContent x:Name="_properties" Title="Properties" DockableStyle="DockableToBorders" >
                                </ad:DockableContent>
                                <ad:DockableContent x:Name="_hierarchy" Title="Hierarchy" DockableStyle="DockableToBorders" >
                                    <ui:Hierarchy/>
                                </ad:DockableContent>
                            </ad:DockablePane>
                        </ad:ResizingPanel>
                        <ad:DockablePane ad:ResizingPanel.ResizeHeight="100">
                            <ad:DockableContent>
                                <ui:UCScripting/>
                            </ad:DockableContent>
                        </ad:DockablePane>
                    </ad:ResizingPanel>
                </ad:DockingManager>
            </Grid>

        </Grid>
    </rsCoreWPF:WindowDecorator>

</Window>
